export const apiUser = {
    /**
     * 关注/取消关注
     * @returns
     */
    followUser(id: string | number): Promise<any> {
      return api.request(
        {
          url: `user/capi/user/followUser/${id}`,
        }
      ) as Promise<any>
    },
    /**
     * 关注/粉丝列表接口(0:关注列表，1：粉丝列表)
     * @returns
     */
    getFollows(params:any): Promise<any> {
      return api.page(
        {
          url: `user/capi/user/pageFollowUser`,
          params,
        },
        { pageSize: params.pageSize, pageNum: params.pageNum },  
      ) as Promise<any>
    },
    /**
     * 获取用户信息
     * @returns
     */
    getUserInfo(id?:string|number): Promise<any> {
      return api.action(
        {
          url: `user/capi/user/getUserInfo/${id}`,
        }
      ) as Promise<any>
    },
    /**
     * 修改用户信息
     * @returns
     */
    updateUserInfo(data:any): Promise<any> {
      return api.add(
        {
          url: `user/capi/user/updateUserInfo`,
          data,
        }
      ) as Promise<any>
    },

}
  